import 'package:useable_app/global/Global.dart';
import 'package:useable_app/utils/rsa/rsa_utils.dart';

Future loginModel({username, required String password}) async{
  String pwd = await encodeString(password); // 加密
  return await Global().getInstance().dio.post(
    '/zxw/user',
    queryParameters: {
      "username": username,
      "password": pwd
    }
  );
}

Future tokenLoginModel() async {
  return await Global().getInstance().dio.get("/zxw/user");
}